package onlinebanking.server.modules;

import onlinebanking.constants.MSG;
import onlinebanking.exceptions.UserNotLoggedInException;
import onlinebanking.network.Message;
import onlinebanking.server.ServerEngine;
import onlinebanking.server.objects.BankAccount;

public class AccountCreationModule extends Module {

	public AccountCreationModule(ServerEngine se, Message message) {
		this.serverengine = se;
		this.message = message;

	}

	public Message handleRequest() {
		Message response = new Message();
		int messagetype = message.getMsgType();

		switch (messagetype) {
		case MSG.CREATE_NEWBANKACCOUNT:

			break;

		case MSG.CREATE_NEWPERSONALACCOUNT:

			break;

		case MSG.ADD_ACCOUNTOWNER:

			break;

		default:
			break;
		}

		return response;
	}

	private void createNewBankAccount() {

	}

	private void createNewPersonalAccount() {

	}

	private void addAccountOwner(int bankaccountid, int personalaccontid) {

	}

	private void generatePACs(int bankaccountid) {

	}

}
